package com.elder.business.mapper;

import java.util.List;

import com.elder.business.domain.ApartmentBanner;
import com.elder.business.domain.Elderlyapartment;
import org.apache.ibatis.annotations.Param;

/**
 * 公寓信息Mapper接口
 * 
 * @author zyk
 * @date 2023-11-26
 */
public interface ElderlyapartmentMapper 
{
    /**
     * 查询公寓信息
     * 
     * @param apartmentId 公寓信息主键
     * @return 公寓信息
     */
    public Elderlyapartment selectElderlyapartmentByApartmentId(Long apartmentId);

    /**
     * 查询公寓信息列表
     * 
     * @param elderlyapartment 公寓信息
     * @return 公寓信息集合
     */
    public List<Elderlyapartment> selectElderlyapartmentList(Elderlyapartment elderlyapartment);

    /**
     * 新增公寓信息
     * 
     * @param elderlyapartment 公寓信息
     * @return 结果
     */
    public int insertElderlyapartment(Elderlyapartment elderlyapartment);

    /**
     * 修改公寓信息
     * 
     * @param elderlyapartment 公寓信息
     * @return 结果
     */
    public int updateElderlyapartment(Elderlyapartment elderlyapartment);

    /**
     * 删除公寓信息
     * 
     * @param apartmentId 公寓信息主键
     * @return 结果
     */
    public int deleteElderlyapartmentByApartmentId(Long apartmentId);

    /**
     * 批量删除公寓信息
     * 
     * @param apartmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteElderlyapartmentByApartmentIds(Long[] apartmentIds);

    public List<Elderlyapartment> getAllApartmentInfo();

    public Integer updateElderlyapartmentLiveNum(@Param("apartmentId") Long apartmentId,@Param("num") Integer num);

    public Elderlyapartment getApartmentInfo(@Param("apartmentId") Long apartmentId);

    List<ApartmentBanner> getApartmentBannerList();

    ApartmentBanner getApartmentBanner(@Param("bannerId") Long bannerId);

    Integer addApartmentBanner(ApartmentBanner banner);

    Integer delApartmentBanner(@Param("bannerId") Long bannerId);

    Integer updateApartmentBanner(ApartmentBanner banner);
}
